# Inventory.py controls the inventory of the player.

class Inventory:
	
	NOT_HAD = 0
	UNMAGIC_HAD = 1
	MAGIC_HAD = 2
	
	def __init__(self):
		self.stone = 0
		self.iron = 0
		self.silver = 0
		self.gold = 0
		self.diamond = 0
		self.novarock = 0
		self.snow = 0
		
		self.bow = 0
		self.dagger = 0
		self.crossbow = 0
		self.sword = 0
		
	
	def load(self, block_val, amount):
		if block_val == 1:
			self.stone += amount
		elif block_val == 2:
			self.iron += amount
		elif block_val == 3:
			self.silver += amount
		elif block_val == 4:
			self.gold += amount
		elif block_val == 5:
			self.diamond += amount
		elif block_val == 6:
			self.novarock += amount
		elif block_val == 7:
			self.snow += 1
		else:
			return 1
	def item_add(item_val):
		if item_val == 1:
			self.bow = UNMAGIC_HAD
		elif item_val == 2:
			self.dagger = UNMAGIC_HAD
		elif item_val == 3:
			self.crossbow = UNMAGIC_HAD
		elif item_val == 4:
			self.sword = UNMAGIC_HAD
		elif item_val == 5:
